package xyz.eden.boot.uc.api.fallback;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import xyz.eden.boot.uc.api.dto.res.UserBaseInfoResDTO;
import xyz.eden.boot.uc.api.feign.UserInfoFeignService;

/**
 * UserInfoServiceF
 *
 * @author gavin
 * @version 1.0
 */
@Slf4j
@Component
public class UserInfoFeignServiceFallback implements UserInfoFeignService {
    @Override
    public UserBaseInfoResDTO getBaseInfo(Long userId) {
        log.error("UserInfoFeignServiceFallback.getBaseInfo - userId: [{}] 查询 baseInfo 失败.", userId);
        return UserBaseInfoResDTO.builder()
                .build();
    }
}
